package com.irdstudio.efp.esb.api.rest.yed.req;

import com.alibaba.fastjson.annotation.JSONField;
import com.irdstudio.efp.esb.api.common.GroupeInterface;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author liangcongming :2020/8/4 16:36
 * @version 0.1
 * @date 2020/8/4 16:36
 * @since 2020/8/4 16:36
 */
@Data
public class ReqCtrLoanQueryBean implements Serializable {
    /**证件号码*/
    @NotNull(groups = {GroupeInterface.yed.class})
    @NotEmpty(groups = {GroupeInterface.yed.class})
    @JSONField(name ="IdentNo1")
    private String certcode;

    /**授信协议号*/  // 优e贷渠道端实际送的是借据号
    @JSONField(name ="CrAgrmtNo")
    private String crAgrmtNo;

    /**产品名称*/
    @NotNull(groups = {GroupeInterface.yed.class})
    @NotEmpty(groups = {GroupeInterface.yed.class})
    @JSONField(name ="PdNm")
    private String prdname;

    /**客户名称*/
    @NotNull(groups = {GroupeInterface.yed.class})
    @NotEmpty(groups = {GroupeInterface.yed.class})
    @JSONField(name ="CustNm")
    private String cusname;

    /**证件类型*/
    @NotNull(groups = {GroupeInterface.yed.class})
    @NotEmpty(groups = {GroupeInterface.yed.class})
    @JSONField(name ="IdentTp")
    private String certtype;


    /**产品编号*/
    @NotNull(groups = {GroupeInterface.yed.class})
    @NotEmpty(groups = {GroupeInterface.yed.class})
    @JSONField(name ="PdNo")
    private String prdId;

    /** 预留字段1*/
    private String RsrvdFld1;
    /** 预留字段2*/
    private String RsrvdFld2;
    /** 预留字段3*/
    private String RsrvdFld3;
    /** 预留字段4*/
    private String RsrvdFld4;
    /** 预留字段5*/
    private String RsrvdFld5;
    /** 预留字段6*/
    private String RsrvdFld6;
    /** 预留字段7*/
    private String RsrvdFld7;
    /** 预留字段8*/
    private String RsrvdFld8;

}
